package com.bootdo.updateApp.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import com.bootdo.common.annotation.NotColumn;
import com.bootdo.common.fansheutils.FansheUtils;
import com.bootdo.common.fansheutils.JibenLei;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.haojiangbo.annotation.HapiFeild;


/**
 * 版本更新表
 * 
 * @author lujingqian
 * @email 2100272728@qq.com
 * @date 2019-11-20 09:16:19
 */
 @JsonInclude(JsonInclude.Include.NON_NULL)
public class AppUpdate extends JibenLei {
	@NotColumn
	private static final long serialVersionUID = 1L;
	
	
	//id
	 @NotColumn 	@HapiFeild("id")
	private Integer id;
	
	//APP名称
		@HapiFeild("APP名称")
	private String appName;
	
	//APP版本号
		@HapiFeild("APP版本号")
	private String appVersion;
	
	//wgt路径地址
		@HapiFeild("wgt路径地址")
	private String wgtUrl;
	
	//pkg路径地址
		@HapiFeild("pkg路径地址")
	private String pkgUrl;
	
	//创建时间
		@HapiFeild("创建时间")
	private Date createTime;
	
	//备份字段
		@HapiFeild("备份字段")
	private String backups;

//备份字段
		@HapiFeild("备份字段")
		@NotColumn
	private String pkgUrlImg;

    //备份字段
		@HapiFeild("备份字段")
		@NotColumn
	private String wgtUrlImg;

   //备份字段
		@HapiFeild("备份字段")
		@NotColumn
	private String iosUrlImg;

    //大版本
		@HapiFeild("android大版本")
	private String apkVersion;

	//大版本
	@HapiFeild("ios大版本")
	private String iosVersion;

    //大版本地址
	@HapiFeild("ios更新地址")
	private String iosUrl;

	//大版本地址
	@HapiFeild("Android更新地址")
	private String androidUrl;

    public AppUpdate(){
    
    	this.createTime = new Date();
    	this.wgtUrlImg = "";
    	this.pkgUrlImg = "";
    }

	public String getIosUrlImg() {
		return iosUrlImg;
	}

	public void setIosUrlImg(String iosUrlImg) {
		this.iosUrlImg = iosUrlImg;
	}

	public String getAndroidUrl() {
		return androidUrl;
	}

	public void setAndroidUrl(String androidUrl) {
		this.androidUrl = androidUrl;
	}

	public String getIosUrl() {
		return iosUrl;
	}

	public void setIosUrl(String iosUrl) {
		this.iosUrl = iosUrl;
	}

	public String getApkVersion() {
		return apkVersion;
	}

	public void setApkVersion(String apkVersion) {
		this.apkVersion = apkVersion;
	}

	public String getIosVersion() {
		return iosVersion;
	}

	public void setIosVersion(String iosVersion) {
		this.iosVersion = iosVersion;
	}

	public String getPkgUrlImg() {
		return pkgUrlImg;
	}

	public void setPkgUrlImg(String pkgUrlImg) {
		this.pkgUrlImg = pkgUrlImg;
	}

	public String getWgtUrlImg() {
		return wgtUrlImg;
	}

	public void setWgtUrlImg(String wgtUrlImg) {
		this.wgtUrlImg = wgtUrlImg;
	}

	/**
	 * 设置：id
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * 获取：id
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * 设置：APP名称
	 */
	public void setAppName(String appName) {
		this.appName = appName;
	}
	/**
	 * 获取：APP名称
	 */
	public String getAppName() {
		return appName;
	}
	/**
	 * 设置：APP版本号
	 */
	public void setAppVersion(String appVersion) {
		this.appVersion = appVersion;
	}
	/**
	 * 获取：APP版本号
	 */
	public String getAppVersion() {
		return appVersion;
	}
	/**
	 * 设置：wgt路径地址
	 */
	public void setWgtUrl(String wgtUrl) {
		this.wgtUrl = wgtUrl;
	}
	/**
	 * 获取：wgt路径地址
	 */
	public String getWgtUrl() {
		return wgtUrl;
	}
	/**
	 * 设置：pkg路径地址
	 */
	public void setPkgUrl(String pkgUrl) {
		this.pkgUrl = pkgUrl;
	}
	/**
	 * 获取：pkg路径地址
	 */
	public String getPkgUrl() {
		return pkgUrl;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}
	/**
	 * 设置：备份字段
	 */
	public void setBackups(String backups) {
		this.backups = backups;
	}
	/**
	 * 获取：备份字段
	 */
	public String getBackups() {
		return backups;
	}


	@Override
	@JsonIgnore
	public List<HashMap<String, Object>> getFields() {
		// TODO Auto-generated method stub
		return FansheUtils.getFieldList(this);
	}


}
